package cn.bookcycle.order.pojo;

/**
 * 操作数据库微服务的对象
 *
 * @author liufenglin
 * @date 2018年4月3日
 */
public class DBManipulateBO {
	/** 数据库 */
	private String dbName;
	/** 表 */
	private String tabName;
	/** 操作方法 */
	private String method;
	/** 对象数据 */
	private Object object;
	/** 读取数为的位置，DB微服务的缺省为0 */
	private Integer skip;
	/** 最大获取数据条数，DB微服务的缺省为1000 */
	private Integer limit;
	/** 指定排序的字段 */
	private String sort;
	/** 1 为升序，-1 为降序排列，0就会被忽略 */
	private Integer sortOrder;

	public DBManipulateBO() {
		init();
	}
	
	private void init() {
		this.skip = 0;
		this.limit = 1000;
		this.sort = "";
		this.sortOrder = 0;
	}

	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getTabName() {
		return tabName;
	}

	public void setTabName(String tabName) {
		this.tabName = tabName;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

	public Integer getSkip() {
		return skip;
	}

	public void setSkip(Integer skip) {
		this.skip = skip;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public Integer getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	@Override
	public String toString() {
		return "DBManipulateBO [dbName=" + dbName + ", tabName=" + tabName + ", method=" + method + ", object=" + object
				+ ", skip=" + skip + ", limit=" + limit + ", sort=" + sort + ", sortOrder=" + sortOrder + "]";
	}
	
	
	
}
